package spark.core.scala

import org.apache.spark.{SparkContext, SparkConf}

/**
 * Created by Administrator on 2018/2/15/015.
 */
object UvSpark {


  def main(args: Array[String]) {
    val conf = new SparkConf().setMaster("local[*]").setAppName("UvSpark")
    val sc = new SparkContext(conf)
    val textFile = sc.textFile("datas/page_views.data")

    textFile.map(x => x.split("\t")).filter(arr => arr.length==7 )
  }


}
